<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1 {
            /* width: 300px;
            height: 300px;
            font: italic bold 20px '微软雅黑';
            border: 1px solid #ccc;
            margin: 10px 10px 10px 10px;
            padding: 20px; */
            /* 样式值可以简写，16进制的颜色值，0的单位，小数点前面的0可以缺省 */
            color: #0f0;
            padding: 0;
            margin-left: .5em;
            /* 动画、过渡、变换均可以进行样式的简写 */
        }

        .box2 {
            /* width: 300px;
            height: 300px;
            font: italic bold 20px '微软雅黑';
            border: 1px solid #ccc;
            margin: 10px 10px 10px 10px;
            padding: 20px; */

            color: #f00;
            padding: 10px
        }

        .common {
            width: 300px;
            height: 300px;
            font: italic bold 20px '微软雅黑';
            border: 1px solid #ccc;
            margin: 10px 10px 10px 10px;
            padding: 20px;
        }
    </style>
</head>

<body>

    <div class="common box1">简化css</div>
    <div class="common box2">简化css</div>

</body>

</html>